import { useRef } from "react";
import { EchartsHandle } from "taro-react-echarts";

import { BaseEchartProps } from "types/BaseEchart";
function useBaseEchart(props: BaseEchartProps) {
  const echartsRef = useRef<EchartsHandle>(null);
  return {
    echartsRef,
  };
}

export default useBaseEchart;
